
const { dbMgr } = require('../config')
const { obd_modify_collection } = require('../config')
// console.log(dbMgr)
exports.main = async (event, context) => {

  let result = await dbMgr.database.export(
    obd_modify_collection,
    {
      ObjectKey: 'OBD日志' + (new Date().getTime()) + '.csv'
    },
    {
      FileType: 'csv',
      // Query: JSON.stringify(_condi),
      Fields: 'obdID,obdName,newStaffName,oldStaffName,grid,createDateTime',
    }
  )
  // const { JobId } = result
  return result
}
